package main

import "fmt"

func getMinAndMax(a, b int) (min, max int) {
	if a <= b {
		min = a
		max = b
	} else {
		min = b
		max = a
	}
	return
}

func main() {
	min, max := getMinAndMax(2, 1)
	fmt.Println("min=", min, " max=", max) // min= 1  max= 2
}
